﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace secureFTP_Client
{
    public class ClientConfig
    {
        private IPAddress ServerIP;
        private Int32 ServerPort;
        private Int32 ServerDataPort;
        private UInt64 PocketBufferLength;
        private String ServerRootDirectory;
        private String ServerCorrentDirectory;
        private String ClientCorrentDirectory;

        //public ClientConfig(IPAddress ip, Int32 port)
        //{
        //    this.ServerIP = ip;
        //    this.ServerPort = port;
        //}

        public ClientConfig(ClientConfig clientConfig)
        {
            this.ServerIP = clientConfig.ServerIP;
            this.ServerPort = clientConfig.ServerPort;
            this.ServerDataPort = clientConfig.ServerDataPort;
            this.PocketBufferLength = clientConfig.PocketBufferLength;
            this.ServerRootDirectory = clientConfig.ServerRootDirectory;
            this.ServerCorrentDirectory = clientConfig.ServerCorrentDirectory;
            this.ClientCorrentDirectory = clientConfig.ClientCorrentDirectory;
        }

        public ClientConfig()
        {

        }

        public void SetServerIP(IPAddress iPAddress)
        {
            this.ServerIP = iPAddress;
        }
        public IPAddress GetServerIP()
        {
            return this.ServerIP;
        }
        public void SetServerPort(Int32 port)
        {
            this.ServerPort = port;
        }
        public Int32 GetServerPort()
        {
            return this.ServerPort;
        }
        public void SetServerDataPort(Int32 port)
        {
            this.ServerDataPort = port;
        }
        public Int32 GetServerDataPort()
        {
            return this.ServerDataPort;
        }
        public void SetPocketBufferLength(UInt64 length)
        {
            this.PocketBufferLength = length;
        }
        public UInt64 GetPocketBufferLength()
        {
            return this.PocketBufferLength;
        }
        public void SetServerRootDirectory(String directory)
        {
            this.ServerRootDirectory = directory;
        }
        public String GetServerRootDirectory()
        {
            return this.ServerRootDirectory;
        }
        public void SetClientCorrentDirectory(String correntDirectory)
        {
            this.ClientCorrentDirectory = correntDirectory;
        }
        public String GetClientCorrentDirectory()
        {
            return this.ClientCorrentDirectory;
        }
        public void SetServerCorrentDirectory(String correctDirectory)
        {
            this.ServerCorrentDirectory = correctDirectory;
        }
        public String GetServerCorrentDirectory()
        {
            return this.ServerCorrentDirectory;
        }
    }


}
